package com.example.springboot.search.entity.dto;

import java.util.ArrayList;
import java.util.List;

import com.netbox.service.search.constant.PageConstant;

public class QueryDataDto {

	// 查询数据的id
	private Long id;
	private String tableName;

	// 查询Log-true/base类型
	private boolean type = false;

	// 是否分页(是-true;否-false)
	private boolean byPage = false;

	// 资源类型
	private Integer resourceType;

	// 特征类型
	private Integer dataType;

	private String dataCode;

	// 查询内容
	private String text;

	// 设备编码
	private String machineCode;

	// 开始时间
	private String beginTime;
	// 结束时间
	private String endTime;

	// 开始rowkey
	private String startRowKey;
	// 结束rowkey
	private String endRowKey;
	//
	private String rowKey;

	private boolean isExact;

	// 当前页数
	private Integer page = PageConstant.PageIndex;
	// 每页记录数
	private Integer rows = PageConstant.maxPageSize;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean isType() {
		return type;
	}

	public void setType(boolean type) {
		this.type = type;
	}

	public boolean isByPage() {
		return byPage;
	}

	public void setByPage(boolean byPage) {
		this.byPage = byPage;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Integer getDataType() {
		return dataType;
	}

	public void setDataType(Integer dataType) {
		this.dataType = dataType;
	}

	public String getDataCode() {
		return dataCode;
	}

	public void setDataCode(String dataCode) {
		this.dataCode = dataCode;
	}

	public String getMachineCode() {
		return machineCode;
	}

	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public String getStartRowKey() {
		return startRowKey;
	}

	public void setStartRowKey(String startRowKey) {
		this.startRowKey = startRowKey;
	}

	public String getEndRowKey() {
		return endRowKey;
	}

	public void setEndRowKey(String endRowKey) {
		this.endRowKey = endRowKey;
	}

	public String getRowKey() {
		return rowKey;
	}

	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	public boolean isExact() {
		return isExact;
	}

	public void setExact(boolean isExact) {
		this.isExact = isExact;
	}

	@Override
	public String toString() {
		return "QueryDataDto [id=" + id + ", tableName=" + tableName + ", type=" + type + ", byPage=" + byPage + ", resourceType=" + resourceType
				+ ", dataType=" + dataType + ", dataCode=" + dataCode + ", text=" + text + ", machineCode=" + machineCode + ", beginTime="
				+ beginTime + ", endTime=" + endTime + ", startRowKey=" + startRowKey + ", endRowKey=" + endRowKey + ", rowKey=" + rowKey
				+ ", isExact=" + isExact + ", page=" + page + ", rows=" + rows + "]";
	}

}
